home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™ 1987-1994 / MacHack™ '93 / Hacks '93 / Mystery Science Mac / INIT sources / Mac #includes 7.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-01  |  4.6 KB  |  180 lines  |  [TEXT/KAHL]

  1.  
  2. /*
  3.  *  Mac #includes.c - source to MacHeaders
  4.  *
  5.  *  To add a header, change its "#if 0" to "#if 1".
  6.  *
  7.  *  To remove a header, change its "#if 1" to "#if 0".
  8.  *
  9.  *  There are some conflicts and order dependencies among the various
  10.  *  headers:
  11.  *
  12.  *    •    <LoMem.h> and <SysEqu.h> cannot both be included.
  13.  *
  14.  *    •    <asm.h> and <Traps.h>, if both are included, must appear
  15.  *        in that order.  If <Traps.h> is included, traps used in
  16.  *        inline assembly must appear without leading underscores.
  17.  *
  18.  *  If the "Check Pointer Types" option is disabled during the
  19.  *  precompilation process, trap definitions will be stored in
  20.  *  such a way that when a trap is called (in a source file that
  21.  *  #includes the precompiled header), pointer arguments to the
  22.  *  trap will not be matched against the types of corresponding
  23.  *  formal parameters.
  24.  *
  25.  *  This is accomplished by storing "simplified" prototypes for
  26.  *  traps, in which any argument of pointer type is stored as
  27.  *  "void *".  The result closely resembles the treatment of traps
  28.  *  in pre-5.0 versions of THINK C.
  29.  *
  30.  *  (Note that this file is written in such a way that it is immune
  31.  *  to the actual compiler setting of "Check Pointer Types".  Use
  32.  *  the "SIMPLIFY_PROTOTYPES" macro, below, to control whether full
  33.  *  prototypes are retained.)
  34.  *
  35.  *    Note that none of the foregoing applies to Symantec C++, nor to 
  36.  *    Symantec C/C++ for MPW. This file is #included by the source for
  37.  *    MacHeaders++, the precompiled header for Symantec C++. If a compiler
  38.  *    other than THINK C precompiles this file, asm.h and LoMem.h are
  39.  *    #if'd out. If an MPW-hosted compiler precompiles this file, BDC.h
  40.  *    and pascal.h are #if'd out.
  41.  *
  42.  */
  43.  
  44. #ifndef SystemSixOrLater
  45. #define SystemSixOrLater 1
  46. #endif
  47.  
  48. #ifndef SystemSevenOrLater
  49. #define SystemSevenOrLater 1
  50. #endif
  51.  
  52. #ifndef __SC__
  53.  
  54. // set this to 0 (zero) to retain full prototypes
  55. // set this to 1 (one) for "simplified" prototypes
  56. #define SIMPLIFY_PROTOTYPES        1
  57.  
  58.  
  59. // prototype checking level
  60. #if SIMPLIFY_PROTOTYPES
  61.     #if !__option(check_ptrs)
  62.         #undef SIMPLIFY_PROTOTYPES
  63.     #endif
  64.     #pragma options(!check_ptrs)
  65. #else
  66.     #if __option(check_ptrs)
  67.         #undef SIMPLIFY_PROTOTYPES
  68.     #endif
  69.     #pragma options(check_ptrs)
  70. #endif
  71.  
  72. #endif
  73.  
  74.  
  75. //    #include <ADSP.h>
  76. //    #include <AIFF.h>
  77. //    #include <Aliases.h>        // Note: unnecessarily includes <AppleTalk.h>
  78. //    #include <AppleEvents.h>    // Note: unnecessarily includes <EPPC.h>
  79. //    #include <AppleTalk.h>
  80. //    #include <Balloons.h>        // Note: unnecessarily includes <Traps.h> for _Pack14
  81.     #include <BDC.h>
  82. //    #include <CommResources.h>
  83. //    #include <Connections.h>
  84. //    #include <ConnectionTools.h>
  85.     #include <Controls.h>
  86. //    #include <CRMSerialDevices.h>
  87. //    #include <CTBUtilities.h>
  88. //    #include <DatabaseAccess.h>
  89.     #include <Desk.h>
  90. //    #include <DeskBus.h>
  91.     #include <Devices.h>
  92.     #include <Dialogs.h>
  93.     #include <DiskInit.h>
  94. //    #include <Disks.h>
  95. //    #include <Editions.h>
  96. //    #include <ENET.h>
  97. //    #include <EPPC.h>
  98.     #include <Errors.h>
  99.     #include <Events.h>
  100.     #include <Files.h>
  101. //    #include <FileTransfers.h>
  102. //    #include <FileTransferTools.h>
  103. //    #include <Finder.h>
  104. //    #include <FixMath.h>
  105.     #include <Folders.h>
  106.     #include <Fonts.h>
  107.     #include <GestaltEqu.h>
  108. //    #include <Graf3D.h>
  109. //    #include <HyperXCmd.h>
  110. //    #include <Icons.h>
  111. //    #include <Language.h>
  112.     #include <Lists.h>
  113.     #include <Memory.h>
  114.     #include <Menus.h>
  115. //    #include <MIDI.h>
  116.     #include <Notification.h>
  117.     #include <OSEvents.h>
  118.     #include <OSUtils.h>
  119. //    #include <Packages.h>
  120. //    #include <Palette.h>
  121. //    #include <Palettes.h>
  122. //    #include <Picker.h>
  123. //    #include <PictUtil.h>
  124. //    #include <Power.h>
  125. //    #include <PPCToolBox.h>
  126. //    #include <Printing.h>
  127.     #include <PrintTraps.h>
  128. //    #include <Processes.h>
  129. //    #include <QDOffscreen.h>
  130.     #include <Quickdraw.h>
  131.     #include <Resources.h>
  132. //    #include <Retrace.h>
  133. //    #include <ROMDefs.h>
  134. //    #include <SANE.h>
  135.     #include <Scrap.h>
  136. //    #include <Script.h>
  137. //    #include <SCSI.h>
  138.     #include <SegLoad.h>
  139. //    #include <Serial.h>
  140. //    #include <ShutDown.h>
  141. //    #include <Slots.h>
  142. //    #include <Sound.h>
  143. //    #include <SoundInput.h>
  144.     #include <StandardFile.h>
  145. //    #include <Start.h>
  146. //    #include <SysEqu.h>
  147. //    #include <Terminals.h>
  148. //    #include <TerminalTools.h>
  149.     #include <TextEdit.h>
  150.     #include <Timer.h>
  151.     #include <ToolUtils.h>
  152. //    #include <Traps.h>
  153.     #include <Types.h>
  154. //    #include <Values.h>
  155. //    #include <Video.h>
  156.     #include <Windows.h>
  157.     #include <pascal.h>
  158.  
  159.     #ifdef THINK_C
  160.         #include <asm.h>
  161.     #endif
  162.  
  163.     #if !defined(__cplusplus)
  164.         #include <LoMem.h>
  165.     #endif
  166.  
  167.     #include <THINK.h>
  168.  
  169. #ifndef __SC__
  170.  
  171. // restore "Check Pointer Types" to previous setting
  172. #if SIMPLIFY_PROTOTYPES
  173.     #pragma options(check_ptrs)
  174. #elif defined(SIMPLIFY_PROTOTYPES)
  175.     #pragma options(!check_ptrs)
  176. #endif
  177. #undef SIMPLIFY_PROTOTYPES
  178.  
  179. #endif
  180.